package gameObjects;

import java.util.Vector;
import com.jme.math.Vector3f;

public class Vector3fCoords {
	public static enum WALLDIRECTION{ROW,COLUMN};
	
	private Vector<Vector3f> startPoints;
	private Vector<Vector3f> endPoints;
	private Vector<WALLDIRECTION> directions;
	
	public Vector3fCoords()
	{
		startPoints = new Vector<Vector3f>();
		endPoints   = new Vector<Vector3f>();
		directions  = new Vector<WALLDIRECTION>();
	}
	
	public void setCoord(Vector3f startPoint,Vector3f endPoint,WALLDIRECTION direction)
	{
		startPoints.add(startPoint);
		endPoints.add(endPoint);	
		directions.add(direction);
	}
	
	public Vector3f getStartPoint(int index)
	{
		return startPoints.get(index);
	}
	
	public Vector3f getEndPoint(int index)
	{
		return endPoints.get(index);
	}
	
	public WALLDIRECTION getWallDirection(int index)
	{
		return directions.get(index);
	}
	
	public void removeCoord(int index)
	{
		startPoints.remove(index);
		endPoints.remove(index);
		directions.remove(index);
	}
	
	public void clear()
	{
		startPoints.clear();
		endPoints.clear();
		directions.clear();
	}
	
	public int getSize()
	{
		return startPoints.size();
	}
}
